package cn.houserent.biz;

import cn.houserent.dao.HouseDao;
import cn.houserent.entity.House;

import java.util.List;

public class HouseBizImpl implements HouseBiz {
    HouseDao houseDao;
    @Override
    public House getHouseById(int houseId) {
        return houseDao.getHouseById(houseId);
    }

    @Override
    public List<House> getHouseByTitle(String title) {
        return houseDao.getHouseByTitle(title);
    }

    public HouseDao getHouseDao() {
        return houseDao;
    }

    public void setHouseDao(HouseDao houseDao) {
        this.houseDao = houseDao;
    }
}
